package com.zthz.douxing

class Address {

    String province
    String city
    String detail


    static constraints = {
        province nullable: true, blank: true
        city nullable: true, blank: true
        detail nullable: true, blank: true
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Address{");
        sb.append("id=").append(id);
        sb.append(", province='").append(province).append('\'');
        sb.append(", city='").append(city).append('\'');
        sb.append(", detail='").append(detail).append('\'');
        sb.append(", version=").append(version);
        sb.append('}');
        return sb.toString();
    }
}
